<%@ Assembly Name="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Assembly Name="System.DirectoryServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"%> 
<%@ Assembly Name="ECTSExtension, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ba9d76b474698a8d" %>

<%@ Page Language="C#" MasterPageFile="~/_layouts/application.master" Inherits="ECTSExtension.ExternalUserRequest"
    EnableViewState="false" EnableViewStateMac="false" %>

<%@ Import Namespace = "Microsoft.SharePoint" %>
<%@ Import Namespace = "System.DirectoryServices" %>
<%@ Import Namespace = "System.Net.Mail" %>
<%@ Import Namespace = "System" %>
<%@ Import Namespace = "System.Web" %>
<%@ Import Namespace = "System.Web.Security" %>
<%@ Import Namespace = "System.Security.Principal" %>
<%@ Import Namespace = "System.Runtime.InteropServices" %>
<%@ Register Tagprefix = "SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register TagPrefix = "wssuc" TagName="ButtonSection" src="~/_controltemplates/ButtonSection.ascx"%>
<%@ Register TagPrefix = "wssuc" TagName="InputFormControl" src="~/_controltemplates/InputFormControl.ascx"%>
<%@ Register TagPrefix = "wssuc" TagName="InputFormSection" src="~/_controltemplates/InputFormSection.ascx"%>
<%@ Register Tagprefix = "wssawc" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    <table border="0" cellspacing="0" cellpadding="0" class="ms-propertysheet">
        <wssuc:inputformsection title="Account Registration"
            description="" runat="server">
		<Template_Description>
			<SharePoint:EncodedLiteral ID="EncodedLiteral4" runat="server" 
			text="Enter your e-mail address and click on the image next to the text box to verify the address is unique.  When the e-mail verification is complete you will be able to provide your personal information and request an account."
			EncodeMethod='HtmlEncode'/>
			<br>
			<br>
		</Template_Description>
		<Template_InputFormControls>
			<wssuc:InputFormControl LabelText="Your E-Mail Address" runat="server">
				<Template_Control>
					<asp:textbox AllowEmpty=false id="tbUsername" runat="server"/>
				    <asp:ImageButton  ImageUrl="../Images/checknames.gif" id="btnLookup" runat="server"
					   CausesValidation="false" OnClick="btnLookup_Click" ToolTip="Enter your e-mail address"/>
					<br/>
					<asp:label id="lblLookupResult" runat="server" Text="" Font-Bold="true"></asp:label>
				</Template_Control>
			</wssuc:InputFormControl>
			<wssuc:InputFormControl LabelText="Title/Rank" runat="server">
			    <Template_Control>
			        <asp:TextBox id="tbTitleRank" runat="server" Visible="false" />
			    </Template_Control>
			</wssuc:InputFormControl>
			<wssuc:InputFormControl LabelText="First Name" runat="server">
			    <Template_Control>
			        <asp:textbox ID="tbFirstName" runat="server" Visible="false"/>
			    </Template_Control>
			</wssuc:InputFormControl>
			<wssuc:InputFormControl LabelText="Last Name" runat="server">
			    <Template_Control>
			        <asp:textbox ID="tbLastName" runat="Server" Visible="false" />
			    </Template_Control>
			</wssuc:InputFormControl>
			<wssuc:InputFormControl LabelText="Service" runat="server">
			    <Template_Control>
			        <asp:textbox ID="tbService" runat="server" Visible="false" />
			    </Template_Control>
			</wssuc:InputFormControl>
			<wssuc:InputFormControl LabelText="Phone Number" runat="server">
			    <Template_Control>
			        <asp:textbox ID="tbTelephone" runat="server" Visible="false"/>
			    </Template_Control>
			</wssuc:InputFormControl>
			<wssuc:InputFormControl LabelText="Reason / Justification" runat="server">
			<Template_Control>
			<asp:TextBox id="tbJustification" runat="server" Visible="false" TextMode="MultiLine" />
			</Template_Control>
			</wssuc:InputFormControl>
			<wssuc:InputFormControl LabelText="" runat="server">
			    <Template_Control>
			        <asp:LinkButton id="lnkProvision" Text="Click Here to Request Your Account" runat="server"
					   CausesValidation="false" Font-Bold="true" OnClick="lnkProvision_Click" Visible="false" />
                    <asp:label id="lblProvision" runat="server" Text="" Font-Bold="true"></asp:label>
			    </Template_Control>
			</wssuc:InputFormControl>
		</Template_InputFormControls>
	</wssuc:inputformsection>
    </table>
</asp:Content>

<asp:Content ID="PageTitle" runat="server" ContentPlaceHolderID="PlaceHolderPageTitle">
    ECTS External User Access Request
</asp:Content>
<asp:Content ID="PageTitleInTitleArea" runat="server" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea">
    External User Access
</asp:Content>
